﻿using System.Collections.Generic;

namespace RotovapPlatform.Domain.Equipment.Configurations
{
	/// <summary>
	/// 切换阀配置集合
	/// </summary>
	public class ValveConfig
	{
		/// <summary>
		/// 切换阀设备列表
		/// </summary>
		public List<ValveDeviceConfig> SwitchValves { get; set; } = new List<ValveDeviceConfig>();
	}

	/// <summary>
	/// 切换阀设备配置(串口直连版本)
	/// </summary>
	public class ValveDeviceConfig
	{
		/// <summary>
		/// 切换阀名称
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// 串口名称，如"COM5"
		/// </summary>
		public string PortName { get; set; }

		/// <summary>
		/// 从站ID
		/// </summary>
		public byte SlaveId { get; set; }
	}
}